/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

/**
 *
 * @author Noi Nho
 */
public class Function {
    public static String thongBao(String message, String  urlR)
    {
        String str="<script language='javascript'>"
                + "alert('" + message+ "');"
                + "window.location='" + urlR + "';"
                + "</script>";
        return str;
    }

    public static String thongBaoAndGoBack(String message)
    {
        String str="<script language='javascript'>"
                + "alert('" + message+ "');"
                + "history.back(1);"
                + "</script>";
        return str;
    }
    public static String alert(String message)
    {
        String str="<script language='javascript'>"
                + "alert('" + message+ "');"
                + "</script>";
        return str;
    }
}
